
<?php
	$elements			= $this->element->getElements();
	$fieldElement		= current($elements);
	$requiredElement	= $elements[Contest_Form_EntryField::NAME_IS_REQUIRED];
	if( !empty($elements[Contest_Form_EntryField::NAME_ID_ENTRY_FIELD]) )
	{
		$idEntryField		= $elements[Contest_Form_EntryField::NAME_ID_ENTRY_FIELD];
	}
	$belongToValue		= $this->element->getElementsBelongTo();
?>
<dt class="entry_field"></dt>
<dd class="entries_data">
	<div>
        <?php
            echo $this->formCheckbox(
                $belongToValue.'['.$fieldElement->getName().']',
                $fieldElement->getValue(),
                $fieldElement->getAttribs(),
                array(
                    'checkedValue'   => $fieldElement->getCheckedValue(),
                    'uncheckedValue' => $fieldElement->getUnCheckedValue()
                )
            )
        ?>
	<?php echo $this->formLabel($fieldElement->getName(),$fieldElement->getLabel()) ?>
	</div>
	<div>
	<?php
		echo $this->formRadio(
			$belongToValue.'['.$requiredElement->getName().']',
			$requiredElement->getValue(),
			$requiredElement->getAttribs(),
			$requiredElement->getMultiOptions(),
			'<span>&nbsp;&nbsp;&nbsp;&nbsp;</span>'
		);
	?>
	</div>
	<?php if( !empty($idEntryField) ): ?>
	<?php echo $this->{$idEntryField->helper}(
		$belongToValue.'['.$idEntryField->getName().']',
		$idEntryField->getValue(),
		$idEntryField->getAttribs()
	);?>
	<?php endif;?>
</dd>
